package com.hzqy.web.vo.wx_tv;

import javax.websocket.Session;

public class WsSessionVo {
	private Session session;
	private long lastAccessTime;
	private int unconnectCount;
	
	public Session getSession() {
		return session;
	}
	public void setSession(Session session) {
		this.session = session;
		this.lastAccessTime = System.currentTimeMillis();
		this.unconnectCount = 0;
	}
	public long getLastAccessTime() {
		return lastAccessTime;
	}
	public void setLastAccessTime(long lastAccessTime) {
		this.lastAccessTime = lastAccessTime;
	}
	public int getUnconnectCount() {
		return unconnectCount;
	}
	public void setUnconnectCount(int unconnectCount) {
		this.unconnectCount = unconnectCount;
	}
	public int addUnconnectCount() {
		return ++this.unconnectCount;
	}
}
